package com.onLineCar.dispatch.rpc;

import com.onLineCar.common.core.domain.Result;
import com.onLineCar.dispatch.rpc.dto.ApiVehicleInfoDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "onLineCar-manages")
@Component
public interface VehicleManageRPC {

    @PostMapping("/api/vehicle-info/batchQueryVehicleInfo")
    Result<List<ApiVehicleInfoDTO>> queryVehicleInfoByVehicleIds(@RequestBody List<Integer> vehicleIds);

    @GetMapping("/api/vehicle-info/supportCity")
    Result<Integer> supportCity(@RequestParam("district") String district);

    @GetMapping("/api/vehicle-info/driverService")
    Result<Boolean> driverService(@RequestParam("district") String district);

    @GetMapping("/api/vehicle-info/havaBillingRule")
    Result<Boolean> havaBillingRule(@RequestParam("district") String district);
}
